You said “most people here read it as fact that Israel tarteted his family” I’m saying well yeah the article stated it as fact that they targeted his family I just want to know if that is likely or not because to me it seems far fetched.
You said “most people here read it as fact that Israel tarteted his family” I’m saying well yeah the article stated it as fact that they targeted his family I just want to know if that is likely or not because to me it seems far fetched.
The article very clearly accused Israel of targeting his family.
Did you even open the article? Just read the first paragraph.
Today, Al-Jazeera Bureau Chief Wael El-Dahdouh was reporting live in Gaza when an Israeli airstrike killed his wife and two children. Now, other journalists also fear their families could be targeted solely for them doing their job.
Serious question: What are the chances that the family is being targeted versus just being in a building they happened to bomb along with so many others? The article doesn’t address that, and it’s hard for me to believe that Israel would even know where this guy’s family was. I would think if their intelligence was that good, then they should be able to locate some of the hostages, right? Just for context, I think both sides suck and don’t care to hear any vitriol from either side. I’m really only interested in discussing if there is any evidence this was a targeted attack vs happenstance.
After a water heater leak I just made my own. I run my HA on a Raspberry Pi, so I connected the GPIO pins to a current-limiting resistor and some wires that I put in the drip pan of my water heater. I made the two contacts using a screw connector, and hot glued it in the pan. You can also do this with an ESP chip. Additionally, I integrated my smoke detectors through an optoisolator and connected all my hard-wired door and window sensors to the GPIO. It’s been working great this way for me.
When I tried playing with omit in the template editor I got an error about omit being undefined so probably not built in. Bummer because that would be a very elegant solution to this. I’m going to put this down for the night and try picking it back up tomorrow. I really appreciate all the suggestions. Hopefully it will lead me to a solution.
It worked the same as your suggestion above. In cases the variable is used it does works as intended but in the situation the variable is not set it’s still sending data: just with a blank value.
To give more context I’m working on a media control dashboard. The script or rather scripts I have to send commands to kodi is as follows
kodi_control:
sequence:
- service: kodi.call_method
target:
entity_id: '{{ kodi_entity }}'
data:
method: '{{ kodi_method }}'
kodi_control_playback:
sequence:
- service: kodi.call_method
target:
entity_id: '{{ kodi_entity }}'
data:
method: '{{ kodi_method }}'
playerid: '{{ kodi_playerid }}'
kodi_control_subtitles:
sequence:
- service: kodi.call_method
target:
entity_id: '{{ kodi_entity }}'
data:
method: '{{ kodi_method }}'
action: '{{ kodi_action }}'
kodi_control_seek:
sequence:
- service: kodi.call_method
target:
entity_id: '{{ kodi_entity }}'
data:
method: '{{ kodi_method }}'
playerid: '{{ kodi_playerid }}'
value: '{{ kodi_value }}'
kodi_control_playlist:
sequence:
- service: kodi.call_method
target:
entity_id: '{{ kodi_entity }}'
data:
method: '{{ kodi_method }}'
window: '{{ kodi_window }}'
parameters: '{{ [ kodi_parameters ] }}'
I would like to condense all of this down to a single script using “is defined” to omit the parts not needed for certain commands so something like
kodi_control:
sequence:
- service: kodi.call_method
target:
entity_id: '{{ kodi_entity }}'
data: >-
method: '{{ kodi_method }}'
{% if kodi_playerid is defined %}
playerid: '{{ kodi_playerid }}'
{% endif %}
{% if kodi_action is defined %}
action: '{{ kodi_action }}'
{% endif %}
{% if kodi_value is defined %}
value: '{{ kodi_value }}'
{% endif %}
{% if kodi_window is defined %}
window: '{{ kodi_window }}'
{% endif %}
{% if kodi_parameters is defined %}
parameters: '{{ [ kodi_parameters ] }}'
{% endif %}
Problem with the above is I get “result is not a dictionary”
Is it possible to do this in a way that completely omits data: from the command if the variable isn’t defined?
Yes of course and I’m posting on that article to question the claims it’s making. OP stated that the implication was not that the family was targeted but if you read the article it very clearly is. I want to know if there are any supporting facts because it seems unlikely to me.