Hello, first post. Please forgive my lack of or misuse of terminology.
Ill explain what I am trying to do.
Provide what I have accomplished thus far (don’t know that any of it will stay)
And at the very end introduce myself if your interested.
**My goal is to have some RGB strip lights change color based on the current tide.
Green 2 hours before and after high tide, Red 2 hours before and after low tide, yellow in between tides with some indication in color if the tide is rising or falling **
I am using node-red but am open to any integration, script, etc.
I currently have 2 sensors getting tidal data. I know there is another for a fee/credits but I would prefer not to have to spend the $ if I dont have to.
- scrape sensor by blackshoals -https://community.home-assistant.io/t/tide-times/9045/96
sensor:
- platform: scrape
resource: https://tides4fishing.com/us/florida-gulf-coast/hudson-hudson-creek#_tides
name: Tide
select: "#brujula_mareas_texto_movil"
scan_interval: 10
This returns a message like this:
The water level is rising. There are 52 minutes until high tide.
- noaa_tides
sensor:
- platform: noaa_tides
station_id: 8727061
This returns a message like this:
High tide at 3:58 PM
Below is what I have put together so far, when I started to get my head around all the variables I decided to come here and say Hi/Help. Yes its ugly, yes there has to be much better ways and that’s why I am here. I look forward to suggestions and direction.
{
"id": "a067a6aa20faf4c4",
"type": "tab",
"label": "Tide",
"disabled": false,
"info": ""
},
{
"id": "64273919e14f6e1b",
"type": "debug",
"z": "a067a6aa20faf4c4",
"name": "rising",
"active": true,
"tosidebar": true,
"console": false,
"tostatus": false,
"complete": "payload",
"targetType": "msg",
"statusVal": "",
"statusType": "auto",
"x": 1370,
"y": 360,
"wires": []
},
{
"id": "e1cc22eefcd2c456",
"type": "server-state-changed",
"z": "a067a6aa20faf4c4",
"name": "The water level is",
"server": "b3217b27.630be8",
"version": 3,
"exposeToHomeAssistant": false,
"haConfig": [
{
"property": "name",
"value": ""
},
{
"property": "icon",
"value": ""
}
],
"entityidfilter": "sensor.tide",
"entityidfiltertype": "exact",
"outputinitially": false,
"state_type": "str",
"haltifstate": "false",
"halt_if_type": "entity",
"halt_if_compare": "is",
"outputs": 2,
"output_only_on_state_change": true,
"for": "5",
"forType": "num",
"forUnits": "seconds",
"ignorePrevStateNull": false,
"ignorePrevStateUnknown": false,
"ignorePrevStateUnavailable": false,
"ignoreCurrentStateUnknown": false,
"ignoreCurrentStateUnavailable": false,
"outputProperties": [
{
"property": "payload",
"propertyType": "msg",
"value": "",
"valueType": "entityState"
},
{
"property": "data",
"propertyType": "msg",
"value": "",
"valueType": "eventData"
},
{
"property": "topic",
"propertyType": "msg",
"value": "",
"valueType": "triggerId"
}
],
"x": 380,
"y": 180,
"wires": [
[
"a2f84b33da315518"
],
[
"cbc79b95f8d0167b"
]
]
},
{
"id": "c9f36cba3da7a076",
"type": "change",
"z": "a067a6aa20faf4c4",
"name": "2 hours",
"rules": [
{
"t": "change",
"p": "payload",
"pt": "msg",
"from": "The water level is rising.",
"fromt": "str",
"to": "Rising",
"tot": "str"
},
{
"t": "change",
"p": "payload",
"pt": "msg",
"from": "There are 2 hours",
"fromt": "str",
"to": "2",
"tot": "str"
},
{
"t": "change",
"p": "payload",
"pt": "msg",
"from": "high",
"fromt": "str",
"to": "High",
"tot": "str"
},
{
"t": "change",
"p": "payload",
"pt": "msg",
"from": "and",
"fromt": "str",
"to": "",
"tot": "str"
},
{
"t": "change",
"p": "payload",
"pt": "msg",
"from": "minutes",
"fromt": "msg",
"to": "",
"tot": "str"
},
{
"t": "change",
"p": "payload",
"pt": "msg",
"from": "until",
"fromt": "str",
"to": "",
"tot": "str"
},
{
"t": "change",
"p": "payload",
"pt": "msg",
"from": "tide",
"fromt": "str",
"to": "",
"tot": "str"
},
{
"t": "change",
"p": "payload",
"pt": "msg",
"from": "The water level is falling.",
"fromt": "str",
"to": "Falling",
"tot": "str"
}
],
"action": "",
"property": "",
"from": "",
"to": "",
"reg": false,
"x": 680,
"y": 400,
"wires": [
[
"71c27971e3c7b20b",
"318b421756743ab6"
]
]
},
{
"id": "631216ba50ace76f",
"type": "api-call-service",
"z": "a067a6aa20faf4c4",
"name": "",
"server": "ea33da29.578668",
"version": 3,
"debugenabled": true,
"service_domain": "homeassistant",
"service": "turn_on",
"entityId": "light.office_light",
"data": "{\"brightness\":255,\"rgb_color\":[255,255,255],\"transition\":6}",
"dataType": "json",
"mergecontext": "",
"mustacheAltTags": false,
"outputProperties": [],
"queue": "none",
"x": 1140,
"y": 360,
"wires": [
[
"64273919e14f6e1b"
]
]
},
{
"id": "71c27971e3c7b20b",
"type": "switch",
"z": "a067a6aa20faf4c4",
"name": "Rising",
"property": "payload",
"propertyType": "msg",
"rules": [
{
"t": "cont",
"v": "Rising",
"vt": "str"
}
],
"checkall": "true",
"repair": false,
"outputs": 1,
"x": 910,
"y": 360,
"wires": [
[
"631216ba50ace76f"
]
]
},
{
"id": "8c241b5d5b3c291c",
"type": "inject",
"z": "a067a6aa20faf4c4",
"name": "Rising",
"props": [
{
"p": "payload"
}
],
"repeat": "",
"crontab": "",
"once": false,
"onceDelay": 0.1,
"topic": "",
"payload": "The water level is rising.",
"payloadType": "str",
"x": 370,
"y": 360,
"wires": [
[
"c9f36cba3da7a076"
]
]
},
{
"id": "318b421756743ab6",
"type": "switch",
"z": "a067a6aa20faf4c4",
"name": "Falling",
"property": "payload",
"propertyType": "msg",
"rules": [
{
"t": "cont",
"v": "Falling",
"vt": "str"
}
],
"checkall": "true",
"repair": false,
"outputs": 1,
"x": 910,
"y": 440,
"wires": [
[
"25e61f0bbba5ac1a"
]
]
},
{
"id": "25e61f0bbba5ac1a",
"type": "api-call-service",
"z": "a067a6aa20faf4c4",
"name": "",
"server": "ea33da29.578668",
"version": 3,
"debugenabled": true,
"service_domain": "homeassistant",
"service": "turn_on",
"entityId": "light.office_light",
"data": "{\"brightness\":255,\"rgb_color\":[252,13,13],\"transition\":6}",
"dataType": "json",
"mergecontext": "",
"mustacheAltTags": false,
"outputProperties": [],
"queue": "none",
"x": 1140,
"y": 440,
"wires": [
[
"83ea2b445218f6ed"
]
]
},
{
"id": "708f05822489251e",
"type": "inject",
"z": "a067a6aa20faf4c4",
"name": "Falling",
"props": [
{
"p": "payload"
}
],
"repeat": "",
"crontab": "",
"once": false,
"onceDelay": 0.1,
"topic": "",
"payload": "The water level is falling.",
"payloadType": "str",
"x": 370,
"y": 440,
"wires": [
[
"c9f36cba3da7a076"
]
]
},
{
"id": "a2f84b33da315518",
"type": "debug",
"z": "a067a6aa20faf4c4",
"name": "true",
"active": true,
"tosidebar": true,
"console": false,
"tostatus": false,
"complete": "payload",
"targetType": "msg",
"statusVal": "",
"statusType": "auto",
"x": 650,
"y": 100,
"wires": []
},
{
"id": "cbc79b95f8d0167b",
"type": "debug",
"z": "a067a6aa20faf4c4",
"name": "false",
"active": true,
"tosidebar": true,
"console": false,
"tostatus": false,
"complete": "payload",
"targetType": "msg",
"statusVal": "",
"statusType": "auto",
"x": 650,
"y": 160,
"wires": []
},
{
"id": "83ea2b445218f6ed",
"type": "debug",
"z": "a067a6aa20faf4c4",
"name": "falling",
"active": true,
"tosidebar": true,
"console": false,
"tostatus": false,
"complete": "payload",
"targetType": "msg",
"statusVal": "",
"statusType": "auto",
"x": 1370,
"y": 440,
"wires": []
},
{
"id": "4ee15a25314a8a3f",
"type": "comment",
"z": "a067a6aa20faf4c4",
"name": "scrape sensor",
"info": "",
"x": 170,
"y": 180,
"wires": []
},
{
"id": "ee7a34330f9db9d7",
"type": "comment",
"z": "a067a6aa20faf4c4",
"name": "testing variables",
"info": "",
"x": 160,
"y": 400,
"wires": []
},
{
"id": "b3217b27.630be8",
"type": "server",
"name": "Home Assistant",
"version": 1,
"legacy": false,
"rejectUnauthorizedCerts": true,
"ha_boolean": "y|yes|true|on|home|open",
"connectionDelay": true,
"cacheJson": true
},
{
"id": "ea33da29.578668",
"type": "server",
"name": "Home Assistant",
"version": 1,
"addon": true,
"rejectUnauthorizedCerts": true,
"ha_boolean": "y|yes|true|on|home|open",
"connectionDelay": true,
"cacheJson": true
}
]
Thank you.
Intro:
Hello, I’ve been big into a connected home for many years using wifi bulbs, plugs, switches with Google Assistant devices. As my connected Home grew so did all of the conflicts with various hardware makes/models/apps & general chaos and confusion.
After much frustration I decided to go with Home Assistant and I am having allot of fun turning my connected home into a smart home with HA & Hubitat.
The possibilities seem endless now and I am really digging the fact that I don’t need to rely on Google as the backbone to my setup.
Currently I have a bunch of Sengled lights and plugs, some Yale locks, Nest Cameras, Nest Thermostat, Google WIFI. Google assistants in most rooms.
In my free time I love to play pc games and I am currently enjoying Satisfactory. I live on the Gulf of Mexico so boating & fishing is allots of fun too. Oh… I also like beer.
Thanks for reading!